$base_colo: #333;
$base_colo_high: #ff0000;
$base_zpx: 15px;

.fn-hide {
	display: none;
}
/* 清理浮动 */
.fn-clear:after {
  visibility:hidden;
  display:block;
  font-size:0;
  content:" ";
  clear:both;
  height:0;
}
.fn-clear {
  zoom:1; /* for IE6 IE7 */
}
.m-t {
	margin-top: $base_zpx;
}
.m-b {
	margin-bottom: $base_zpx;
}
.m-l {
	margin-left: $base_zpx;
}
.m-r {
	margin-right: $base_zpx;
}
/**
 * 超过宽度截取以省略号结尾，需要定义宽度
**/
.fn-ellip {
  word-break:keep-all;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.fn-ellip-default {
  word-break: break-all;
  word-wrap: break-word;
  overflow: hidden;
  white-space: normal;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  /**
   * 显示一行
  **/
  -webkit-line-clamp: 1;
}
.fn-ellip-inline {
  word-break: break-all;
  word-wrap: break-word;
  overflow: hidden;
  white-space: normal;
  text-overflow: ellipsis;
  display: -webkit-inline-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.fn-ellip-default.two {
  /**
   * 显示两行
  **/
  -webkit-line-clamp: 2;
}

* {
  box-sizing: border-box;
}
html { font-size: 62.5% }
@media only screen and(min-width: 481px) { html { font-size: 94%!important } }
@media only screen and(min-width: 561px) { html { font-size: 109%!important } }
@media only screen and(min-width: 641px) { html { font-size: 125%!important }}

.zui-flex {
  display: flex;
}
.zui-flex-center {
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
}
.fn-center {
  text-align: center;
}
#nprogress .bar {
  // background: #263acc;
  background: #00ff5a;
  height: 3px;
  z-index: 3031;
}

.zuiInputAppend.el-input-group {
  .el-input__inner {
    height: 41px;
  }
}
.mainpage /deep/ .el-textarea__inner {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
}
.mainpage .J_singleday {
  /deep/ {
    .el-scrollbar {
      height: 100%;
      .el-scrollbar__wrap {overflow-x: auto;}
    }
  }
}
.J_zbtn {

  &.J_del {
    color: #F56C6C;
  }
}

.fn-high {
  color: #ff0000;
}

/**
 * cube ui 样式优化
**/


@mixin zuiDrawerInput {
  display: inline-block;
  width: 100%;
  border: 1px solid #F6F6F6;
  background: #F6F6F6;
  border-radius: 30px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  padding: 0;
  overflow: hidden;
}
@mixin zuiBtnsWrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 46px;

  .zbtn {
    border: 0;
    border-radius: 0;
    display: inline-block;
    font-size: 18px;

    &.J_reset {
      width: 35%;
      color: #000;
      background-color: #f8f8f8;
    }
    &.J_sub {
      flex: 1;
      color: #fff;
      background-color: #e64340;
    }
  }
}

.scroll-list-wrap {
  height: 350px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  transform: rotate(0deg); // fix 子元素超出边框圆角部分不隐藏的问题
  overflow: hidden;
  .itemWrap {
    .item {
      height: 60px;
      line-height: 60px;
      border-bottom: 1px solid red;
    }
  }

  .zcardWrap {
    padding: 10px;
    .zcard {
      background: #fff;
      border-radius: 6px;
      margin-bottom: 15px;
      font-size: 13px;
      box-shadow: 0px 0px 10px rgba(0,0,0,0.2);

      .zcardRow {
        height: 40px;
        line-height: 40px;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #e6e6e6;
        padding: 0 15px;

        .zlabel {
          width: 90px;
          color: #737275;
        }
        .zdes {
          flex: 1;
          text-align: right;
          word-break:keep-all;
          white-space:nowrap;
          overflow:hidden;
          text-overflow:ellipsis;
          color: #000;
        }

        &:last-child {
          border-bottom: 0;
        }

        &.zcardBtns {
          padding: 0;
          .zbtn {
            padding: 0;
            height: 40px;
            line-height: 40px;
            border-radius: 0;
            font-size: 14px;

            &:first-child {
              border-bottom-left-radius: 6px;
            }
            &:last-child {
              border-bottom-right-radius: 6px;
            }
          }
        }
        &.J_editWrap {
          position: relative;
          padding-right: 26px;
          border-bottom: 1px solid #ffb200;
          .J_editIcon {
            position: absolute;
            right: 6px;
            top: 0;
            width: 20px;
            
            &.J_editIconS {
              color: #828282;
              font-size: 20px;
              right: -28px;
              top: 3px;
            }
          }
        }
      }

      .zcardHeader {
        position: relative;
        height: 46px;
        line-height: 46px;
        padding: 0 15px;
        h4 {
          font-weight: 500;
          font-size: 14px;
        }
        &:before {
          position: absolute;
          right: 0;
          bottom: 0;
          left: 0;
          height: 1px;
          content: '';
          -webkit-transform: scaleY(.5);
          transform: scaleY(.5);
          background-color: #c8c7cc;
        }
        &:after {
          font-family: cube-icon!important;
          font-style: normal;
          -webkit-font-smoothing: antialiased;
          -webkit-text-stroke-width: .2px;
          font-size: inherit;
          line-height: 1;
          position: absolute;
          top: 50%;
          display: inline-block;
          -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
          text-decoration: none;
          color: #bbb;
          right: 15px;
          content: '\E60B';
        }
      }

      .zcardArrow {
        position: relative;
        height: 46px;
        line-height: 46px;
        padding: 0 35px 0 15px;
        &:after {
          font-family: cube-icon!important;
          font-style: normal;
          -webkit-font-smoothing: antialiased;
          -webkit-text-stroke-width: .2px;
          font-size: inherit;
          line-height: 1;
          position: absolute;
          top: 50%;
          display: inline-block;
          -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
          text-decoration: none;
          color: #bbb;
          right: 15px;
          content: '\E60B';
        }
      }
    }
  }

  .zlistWrap {
    background: #fff;
    font-size: 13px;
    .zlist {
      position: relative;
      overflow: hidden;
      padding: 11px 15px;
      &:before {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 1px;
        content: '';
        -webkit-transform: scaleY(.5);
        transform: scaleY(.5);
        background-color: #c8c7cc;
      }
      .zlistRow {
        h4 {
          height: 30px;
          line-height: 30px;
          font-weight: 500;
          font-size: 16px;
        }
        .fn-ellip {
          height: 20px;
          line-height: 20px;
          font-weight: 400;
          color: #8f8f94;
          margin-top: 5px;
        }
      }

      &.J_navigate {
        padding-right: 30px;
        &:active, &:hover, &:focus {
          background: #ececec;
        }
        &:after {
          font-family: cube-icon!important;
          font-style: normal;
          -webkit-font-smoothing: antialiased;
          -webkit-text-stroke-width: .2px;
          font-size: inherit;
          line-height: 1;
          position: absolute;
          top: 50%;
          display: inline-block;
          -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
          text-decoration: none;
          color: #bbb;
          right: 15px;
          content: '\E60B';
        }
      }
    }
  }
}

.zuiDrawerWrap {
  padding: 15px 10px;
  .zrow {
    margin-bottom: 20px;
    .zlabel {
      font-size: 17px;
      margin-bottom: 10px;
      color: #000;
      position: relative;
      padding-left: 10px;
      line-height: 1.8;

      &:before {
        position: absolute;
        left: 0;
        top: 6px;
        content: '';
        width: 3px;
        background: #e64340;
        height: 60%;
      }
    }
    .zdes {
      margin-bottom: 10px;
      display: flex;

      .zinput {
        @include zuiDrawerInput;
        &:focus {
          outline: none;
        }
        &.cube-input_active:after {
          border: 0;
          outline: none;
        }

        /deep/ {
          .cube-input-field {
            padding: 0 10px;
            color: #000;
            text-align: center;
            font-size: 14px;

            &:focus {
              border: none;
              outline: none;
            }
          }
        }
      }
      .zselect {
        @include zuiDrawerInput;

        &.cube-select_active:after {
          border: 0;
          outline: none;
        }
        &:after {
          border: 0;
          outline: none;
        }
      }
      .zdatepicker {
        @include zuiDrawerInput;
        font-size: 14px;
        position: relative;

        .cubeic-wrong {
          position: absolute;
          right: 0;
          top: 0;
          height: 32px;
          line-height: 32px;
          width: 32px;
          display: block;
          color: #999;
        }
      }

      &.J_inputAppend {
        position: relative;
        .J_inputAppendWrap {
          position: absolute;
          right: 0;
          top: 1px;
          bottom: 1px;
          background-color: #f5f7fa;
          color: #909399;
          border: 1px solid #dcdfe6;
          white-space: nowrap;
          border-radius: 30px;
          border-top-left-radius: 0;
          border-bottom-left-radius: 0;
          line-height: 30px;
          width: 80px;
          text-align: center;
        }
        .zinput {
          margin-right: 78px;
          border-top-right-radius: 0;
          border-bottom-right-radius: 0;
        }
      }
    }
  }
  .btn-area {
    @include zuiBtnsWrap;
  }
}

.zuipagesubWrap {
  .zrow {
    display: flex;
    align-items: center;
    background: #fff;
    margin-bottom: 10px;
    padding-left: 10px;
    font-size: 14px;
    height: 47px;
    line-height: 47px;
    .zlabel {
      color: #737275;
      position: relative;
    }
    .zdes {
      flex: 1;
      position: relative;
      padding: 0 18px;

      &.zpicker {

        .cubeic-arrow {
          position: absolute;
          top: 0;
          right: 0;
          padding: 0 5px;
          color: #ccc;
        }

        .zselect {
          display: inline-block;
          width: 100%;
          height: 47px;
          line-height: 47px;
          padding: 0;
          overflow: hidden;
          vertical-align: middle;

          &.cube-select_active:after {
            border: 0;
            outline: none;
          }
          &:after {
            border: 0;
            outline: none;
          }
        }
      }

      .zinput {
        border-bottom: 2px solid #eabc4f;
        margin-bottom: -2px;
        &:after {
          display: none;
        }
      }
    }

    &.ztips {
      margin-top: -9px;
    }
  }
  .btn-area {
    @include zuiBtnsWrap;

    .zbtn {
      font-size: 16px;
      
      &.J_reset {
        width: 30%;
      }
      &.J_sub {
        background-color: #018DEE;
      }
    }
  }
}

.zpopupWrap {
  padding: 0;
  width: 300px;
  background: #fff;
  box-sizing: border-box;
  border-radius: 10px;
  
  .uni-tip-title {
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    padding: 15px;
  }
  .uni-tip-subtit {
    font-size: 13px;
    color: #616161;
    text-align: center;
  }
  .uni-tip-content {
    padding: 15px;
    font-size: 14px;
    color: #666;
  }
  .uni-tip-group-button {
    margin-top: 10px;
    display: flex;
    border-top: 1px solid #ddd;
  }
  .uni-tip-button {
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #018DEE;
    height: 50px;
    line-height: 50px;
    &:first-child {
      color: #3b4144;
      border-right: 1px solid #ddd;
    }
  }
  .J_inputWrap {
    height: 40px;
    line-height: 40px;
    min-height: 40px;
    padding: 0 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    .uni-input {
      height: 30px;
      line-height: 30px;
      min-height: 30px;
      padding: 0;
      width: 100%;
      &:focus {
        outline: none;
      }
    }
  }
}

.zcontent {
  .ztable {
    table {
      width: 100%;
      tr {
        background-color: #fff;
      }
      td, th {
        padding: 12px 0;
        min-width: 0;
        box-sizing: border-box;
        text-overflow: ellipsis;
        vertical-align: middle;
        position: relative;
        text-align: left;
        border-bottom: 1px solid #ebeef5;
        border-right: 1px solid #ebeef5;
        &:last-child {
          border-right: 0;
        }
      }
      .cell {
        box-sizing: border-box;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        word-break: break-all;
        line-height: 23px;
        padding-left: 10px;
        padding-right: 10px;
      }
      thead {
        color: #909399;
        font-weight: 500;
        th {
          overflow: hidden;
          user-select: none;
          background-color: #fff;
          border-top: 1px solid #ebeef5;
          background-color: #cd6d6d;
          color: #fff;
          .cell {
            display: inline-block;
            box-sizing: border-box;
            position: relative;
            vertical-align: middle;
            padding-left: 10px;
            padding-right: 15px;
            width: 100%;
            position: relative;

            .icon {
              position: absolute;
              right: 3px;
              top: -5px;
              font-size: 20px;

              &.cubeic-pulldown {
                top: 4px;
              }

              &.act {
                color: #40ffad;
              }
            }

            &.depart {

            }
          }
        }
      }
      tbody {
        tr:nth-child(2n){
          td {
            background: #fafafa;
          }
        }
      }
    }
  }

  .zui_new {
    color: #ff0000!important;
  }
  .zui_undo {
    color: #be9a9a!important;
  }
  .zui_done {
    color: #28c488!important;
  }

  .ztableWrap {
    .J_row {
      border-bottom: 1px solid #ddd;
      &:nth-child(2n+1) {
        .J_col {
          background: #fafafa;
        }
      }
      &:nth-of-type(1) {
        border-top: 1px solid #ddd;
        .J_col {
          background: #cd6d6d;
          color: #fff;
        }
      }
      .J_col {
        height: 40px;
        line-height: 40px;
        border-right: 1px solid #ddd;
        text-align: center;
        position: relative;
        &.w1 {
          width: 80px!important;
        }
        &.w2 {
          width: 150px;
        }
        &.w3 {
          width: 300px;
        }

        &.remark {
          padding: 0 5px;
        }

        &.J_edit {
          color: #d1672a;
        }
      }

      .icon {
        position: absolute;
        right: 3px;
        top: -5px;
        font-size: 20px;

        &.cubeic-pulldown {
          top: 4px;
        }

        &.act {
          color: #40ffad;
        }
      }
    }
    .J_left {
      .J_col {
        width: 100px;
      }
    }
    .J_right {
      .J_col {
        width: 100px;
        &:last-child {
          border-right: 0;
        }
      }
    }

    .horizontal-scroll-list-wrap {
      /deep/ {
        .cube-scroll-content{
          display: inline-block;
        }
        .list-wrapper{
          padding: 0 10px;
          line-height: 60px;
          white-space: nowrap;
        }
        .list-item{
          display: inline-block;
        }
      }
    }
  }
}

.vjs-custom-skin > .video-js .vjs-picture-in-picture-control {
  display: none!important;
}
